package com.tanhua.app.controller;

import com.tanhua.app.service.MovementsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/movements")
public class MovementsController {

    @Autowired
    private MovementsService movementsService;

    @GetMapping(value = "/visitors",name="最近访客")
    public ResponseEntity findVisitors(){

        return movementsService.findVisitors();
    }
}
